From b095cf382d928ce92f098c4d0c8043184fe8edd2 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sat, 23 Dec 2017 22:00:21 +0000 Subject: [PATCH] lldb-link-atomic =================================================================== Gbp-Pq: Name lldb-link-atomic.diff --- lldb/lib/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index ff10216b..d475cf67 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -192,6 +192,10 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD)) # Link in python LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -ledit -lncurses -lpanel -lpthread LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) + ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), armel mips mipsel powerpc powerpcspe)) + # Link GCC atomic helper library + LLVMLibsOptions += -latomic + endif endif ifeq ($(HOST_OS),FreeBSD) -- 2.30.2